package demo5;

/**
 * ClassName Dog
 * Description TODO
 * Author Yanyan
 * Date 2025/11/13 14:06
 * Version 1.0
 */
public class Dog extends Animal implements IRunnable,ISwimmable{
    public Dog(String name, int age) {
        super(name, age);
    }

    @Override
    public void eat() {
        System.out.println(name + "吃狗粮中！");
    }

    @Override
    public void run() {
        System.out.println(name + "用四条狗腿快速奔跑！");
    }

    @Override
    public void swim() {
        System.out.println(name + "狗刨式游泳中！");
    }
}
